package obj;

import java.awt.geom.Point2D;

public class Node {

	public static String STATUS_GREEN = "GREEN";
	public static String STATUS_RED = "RED";
	public static String STATUS_AMBER = "AMBER";
	int xPoint;
	int yPoint;
	int xBox;
	int yBox;
	String name;
	double xDouble;
	double yDouble;
	private Point2D.Double nodePosition;
	private boolean isLight;
	private boolean isVehicleIn;

	public boolean isVehicleIn() {
		return isVehicleIn;
	}

	public void setVehicleIn(boolean isVehicleIn) {
		this.isVehicleIn = isVehicleIn;
	}

	public String getLightState() {
		return lightState;
	}

	public void setLightState(String lightState) {
		this.lightState = lightState;
	}

	private String lightState;

	public boolean isLight() {
		return isLight;
	}

	public void setLight(boolean isLight) {
		this.isLight = isLight;
	}

	public Point2D.Double getNodePosition() {
		return nodePosition;
	}

	public void setNodePosition(Point2D.Double nodePosition) {
		this.nodePosition = nodePosition;
	}

	public Node(int x, int y, String n) {
		this.xPoint = x;
		this.yPoint = y;
		this.name = n;
		this.xBox = x / 10;
		this.yBox = y / 10;
		this.xDouble = (double) x;
		this.yDouble = (double) y;
		this.nodePosition = new Point2D.Double(xDouble, yDouble);
	}

	public int getxPoint() {
		return xPoint;
	}

	public double getxDouble() {
		return xDouble;
	}

	public void setxDouble(double xDouble) {
		this.xDouble = xDouble;
	}

	public double getyDouble() {
		return yDouble;
	}

	public void setyDouble(double yDouble) {
		this.yDouble = yDouble;
	}

	public void setxPoint(int xPoint) {
		this.xPoint = xPoint;
	}

	public int getyPoint() {
		return yPoint;
	}

	public void setyPoint(int yPoint) {
		this.yPoint = yPoint;
	}

	public int getxBox() {
		return xBox;
	}

	public void setxBox(int xBox) {
		this.xBox = xBox;
	}

	public int getyBox() {
		return yBox;
	}

	public void setyBox(int yBox) {
		this.yBox = yBox;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
